<?php echo $this->view->menssagem; ?>
<center>
    <div class="panel panel-info" style="width: 300px">
        <div class="panel-heading">Acesso ao Sistema</div>
        <div class="panel-body">

            <?php if (!isset($_SESSION['usuario'])) { ?>
                <form class="form-horizontal" role="form" method="POST" action="/caixa/login">
                    <div class="form-group">
                        <span for="login" class="col-sm-2 control-label">Login</span>
                        <div class="col-sm-10">
                            <input class="form-control" type="text" name="login" id="login"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <span for="senha" class="col-sm-2 control-label">Senha</span>
                        <div class="col-sm-10">
                            <input class="form-control" type="password" name="senha" id="senha"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div align="right" class="col-sm-offset-2 col-sm-10">
                            <input class="btn btn-primary" type="submit" value="Entrar"/>
                        </div>
                    </div>
                </form>
            <?php } ?>
        </div>
    </div>
</center>